<?php
sdk_import('&.util.log.log4php.Logger');
class SDK_Log extends Logger
{
    public function log ($log)
    {
        return $this->debug($log);
    }
    public static function &getLogInstance ($name)
    {
        try {
            Logger::configure(SDK_CONFIGS_PATH . 'log4php.conf.php');
            $logger = &self::getLogger($name);
            return $logger;
        } catch (LoggerException $e) {
            return FALSE;
            #show_error($e->getMessage());
        #echo $e->getTraceAsString();
        }
        return FALSE;
    }
}
